package club.cearnach.core.property;

/**
 * @author 阮胜
 * @date 2018/5/4 17:40
 */
public class MovieCrawlerProperties {
    private static final String URL_OBTAIN_MOVIE_INFO_BY_TYPE = "https://movie.douban.com/j/search_subjects?type=movie&tag=";
    private static final String URL_SORT = "&sort=recommend&page_limit=%d&page_start=%d";
    public static String getUrlObtainMovieInfoByType(String typeName, int start, int limit) {
        return String.format("https://movie.douban.com/j/search_subjects?type=movie&tag=%s&sort=recommend&page_limit=%d&page_start=%d", typeName, limit, start);
    }
}
